package tt.dz.common;

/**
 * 常量类
 * @author Xielf
 */
public final class Constants {

	/**
	 * JSON响应码类
	 * @author 谢龙飞
	 */
	public static final class  JsonResponseCode{
		
		
		/**操作成功*/
		public static final String SUCCESS="0000";

		/**操作失败*/
		public static final String FAIL="0001";

		/**操作失败，数据库操作错误*/
		public static final String DATABASE_OP_ERROR="0002";
		
		/**APP TOKEN校验失败*/
		public static final String TOKEN_ERROR="0003";
		
		/**用户已经存在*/
		public static final String USER_EXISTS="0004";
		
		/**用户不存在*/
		public static final String USER_NOT_EXISTS="0005";
		
		/**用户名或者密码错误*/
		public static final String USERNAME_PWD_ERR="0006";
		
		/**用户被禁用*/
		public static final String ACCOUNT_DISABLED="0007";
		
		/**账号异常*/
		public static final String ACCOUNT_ABNORMAL ="0008";
		
		/**账号未激活*/
		public static final String ACCOUNT_NOT_ACTIVATION="0009";
		
		/**账户被冻结*/
		public static final String ACCOUNT_FREEZE="0010";
		
		/**App服务器http请求失败*/
		public static final String HTTPREQUEST_ERROR="0011";
		
		/**旧密码输入错误*/
		public static final String OLD_PWD_ERROR="0012";
		
		/**订单不存在*/
		public static final String ORDER_NOT_EXISTS="0013";
		
	}
	/**
	 * 加密编码
	 * @author 谢龙飞
	 *
	 */
	public static final class EncryptCode{
		
		/**MD5加密字符串编码类型*/
		public static final String ENCODING="UTF-8";
		
		/**MD5加密字符串编码密钥*/
		public static final String PASSWORD_KEY="@www.dz.tt";
		
		/**字符串base64编码Key*/
		public static final String BASE64_KEY="@www.dz.tt";
		
	}
	
	/**
	 * 回调地址（后期需不需要待定）
	 * @author 谢龙飞
	 *
	 */
	public static final class callbackAddr{
		
		/**预约回调*/
		public static final String resevation = "http://dzappv1.dz.tt/index.php?m=apitest&c=api_app&a=return_bespeak";
		
		/**充电回调*/
		public static final String recharge = "http://dzappv1.dz.tt/index.php?m=apitest&c=api_app&a=return_charg";
		
	}
}
